package com.ruoyi.uav.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.uav.domain.UavTaskRecord;
import com.ruoyi.uav.domain.vo.HomeInfoData;
import com.ruoyi.uav.mapper.UavTaskRecordMapper;
import com.ruoyi.uav.service.IUavTaskRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 任务记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class UavTaskRecordServiceImpl extends ServiceImpl<UavTaskRecordMapper, UavTaskRecord> implements IUavTaskRecordService {
    @Resource
    private UavTaskRecordMapper uavTaskRecordMapper;


    /**
     * 查询任务记录列表
     *
     * @param uavTaskRecord 任务记录
     * @return 任务记录
     */
    @Override
    public List<UavTaskRecord> selectUavTaskRecordList(UavTaskRecord uavTaskRecord) {
        return uavTaskRecordMapper.selectUavTaskRecordList(uavTaskRecord);
    }

    @Override
    public UavTaskRecord getInfo(Long id) {
        return uavTaskRecordMapper.getInfo(id);
    }

    @Override
    public List<HomeInfoData> selectUavHomeInfo() {
        return uavTaskRecordMapper.selectUavHomeList();
    }

}
